package exam;

public class DaoTest {
    public static void main(String[] args) {
        UserDaoImpl udi = new UserDaoImpl();
        //udi.createTable();

        //User user = new User(1,"Tom","123456","老师",20000);
        //udi.insert(user);

//        if( udi.login("Tom","123456")){
//            System.out.println("登录成功");
//        }else{
//            System.out.println("登录失败");
//        }
//        User user = new User(1,"Jory","0000","学生",0);
//        udi.update(user);
        //int[] ids = {1};
        //udi.delete(ids);
       // System.out.println(udi.getAll());

        //System.out.println(udi.getUserForPage(1, 1));

        System.out.println(udi.getUserById(1));

    }
}
